import { createSSRApp } from 'vue'
import pinia from './stores'
import '@/utils/uview-plus'
import App from './App.vue'
import { useHiddenTitle } from '@/hooks'

// import uviewPlus from 'uview-plus'

export function createApp() {
  const app = createSSRApp(App)

  app.use(pinia)
  app.mixin({
    onReady() {
      useHiddenTitle()
    },
  })
  // app.use(uviewPlus)
  // uni.$u.config.unit = 'rpx'
  return {
    app,
  }
}
